#include "Graphics/MaterialManager.h"

#include "Framework/StableHeaders.h"
#include "IO/ResourceGroupManager.h"
#include "Graphics/Material.h"


namespace tyro
{
	namespace Graphics
	{
		

		IO::Resource* MaterialManager::CreateImpl( const String& name, ResourceHandle resHandle, const String& group )
		{
			return new Material(this, name, resHandle, group);
		}

		MaterialManager::MaterialManager()
		{

			// Resource type
			resourceType = "Material";
		}

		void MaterialManager::Initialise( void )
		{
			MaterialPtr defaultMat = Create("BaseGreen", IO::ResourceGroupManager::DEFAULT_GROUP_NAME);
			defaultMat->CreateTechnique()->CreatePass();

		}

	}
}
